package org.example.laboratorymanagement.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.example.laboratorymanagement.pojo.Admin;

@Mapper
public interface AdminMapper {

    @Select("select id,username,password from admin where username = #{username} and password = #{password}")
    Admin selectByUsernameAndPwd(Admin admin);

    @Select("select id,username,password from admin where id = #{id}")
    Admin selectById(Integer id);

    void update(Admin admin);
}
